package com.xinsoft.entity.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class PushBillDTO {
    /**
     * 单据类型
     */
    @NotNull(message = "单据类型不能为空")
    private Integer billType;

    /**
     * 源单id
     */
    @NotNull(message = "源单id不能为空")
    private Integer sourceId;

    /**
     * 源单明细id
     */
    @NotNull(message = "源单明细id不能为空")
    private Integer sourceItemId;

    /**
     * 物料ID
     */
    // @NotNull(message = "物料ID不能为空")
    private Integer materialId;

    /**
     * ERP出入库传参
     */
    @Valid
    @NotEmpty(message = "ERP出入库传参不能为空")
    List<ErpInOrOutStockParam> erpInOrOutStockParamList;
}
